splitting strings in python

35

cmd = input('Enter command:')
dictionary = cmd.split(' ')[1]
text = cmd.split(' ')[2:]

Comments

Submit
0 Comments